#!/bin/bash

# Main Version
if [ "${NginxSelect}" = "1" ] || [ "${NginxSelect}" = "3" ]; then
    Nginx_Ver="nginx-${Nginx_Version1}"
 elif [ "${NginxSelect}" = "2" ] || [ "${NginxSelect}" = "4" ]; then
    Nginx_Ver="nginx-${Nginx_Version2}"
fi
if [ "${DBSelect}" = "1" ]; then
    Mysql_Ver="mysql-${MySQL_Version1}"
 elif [ "${DBSelect}" = "2" ]; then
    Mysql_Ver="mysql-${MySQL_Version2}"
 elif [ "${DBSelect}" = "3" ]; then
    Mysql_Ver="mysql-${MySQL_Version3}"
 elif [ "${DBSelect}" = "4" ]; then
    Mysql_Ver="mysql-${MySQL_Version4}"
 elif [ "${DBSelect}" = "5" ]; then
    Mysql_Ver="mysql-${MySQL_Version5}"
 elif [ "${DBSelect}" = "6" ]; then
    Mariadb_Ver="mariadb-${MariaDB_Version6}"
 elif [ "${DBSelect}" = "7" ]; then
    Mariadb_Ver="mariadb-${MariaDB_Version7}"
 elif [ "${DBSelect}" = "8" ]; then
    Mariadb_Ver="mariadb-${MariaDB_Version8}"
 elif [ "${DBSelect}" = "9" ]; then
    Mariadb_Ver="mariadb-${MariaDB_Version9}"
 elif [ "${DBSelect}" = "0" ]; then
    Mariadb_Ver="mariadb-${MariaDB_Version0}"
fi
if [ "${PHPSelect}" = "1" ]; then
    Php_Ver="php-${PHP_Version1}"
    php_version="${PHP_Version1}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version1}-all-languages"
 elif [ "${PHPSelect}" = "2" ]; then
    Php_Ver="php-${PHP_Version2}"
    php_version="${PHP_Version2}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version2}-all-languages"
 elif [ "${PHPSelect}" = "3" ]; then
    Php_Ver="php-${PHP_Version3}"
    php_version="${PHP_Version3}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version2}-all-languages"
 elif [ "${PHPSelect}" = "4" ]; then
    Php_Ver="php-${PHP_Version4}"
    php_version="${PHP_Version4}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version3}-all-languages"
 elif [ "${PHPSelect}" = "5" ]; then
    Php_Ver="php-${PHP_Version5}"
    php_version="${PHP_Version5}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version3}-all-languages"
 elif [ "${PHPSelect}" = "6" ]; then
    Php_Ver="php-${PHP_Version6}"
    php_version="${PHP_Version6}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version3}-all-languages"
 elif [ "${PHPSelect}" = "7" ]; then
    Php_Ver="php-${PHP_Version7}"
    php_version="${PHP_Version7}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version3}-all-languages"
 elif [ "${PHPSelect}" = "8" ]; then
    Php_Ver="php-${PHP_Version8}"
    php_version="${PHP_Version8}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version3}-all-languages"
 elif [ "${PHPSelect}" = "9" ]; then
    Php_Ver="php-${PHP_Version9}"
    php_version="${PHP_Version9}"
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version3}-all-languages"
fi
if [ "${DBSelect}" = "1" ]; then
    PhpMyAdmin_Ver="phpMyAdmin-${PhpMyAdmin_Version1}-all-languages"
fi
if [ "${ApacheSelect}" = "1" ]; then
    Apache_Version="httpd-${Apache_Version1}"
 elif [ "${ApacheSelect}" = "2" ]; then
    Apache_Version="httpd-${Apache_Version2}"
fi

#http://nginx.org/en/download.html
#https://downloads.mariadb.org/
#http://php.net/downloads.php
#ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
#http://ftp.gnu.org/pub/gnu/libiconv/
#http://sourceforge.net/projects/mcrypt/files/Libmcrypt/
#http://www.phpmyadmin.net/home_page/downloads.php
#http://ftp.gnu.org/gnu/autoconf/
#http://savannah.nongnu.org/download/freetype/
#http://sourceforge.net/projects/mhash/
#http://pecl.php.net/package-stats.php
#wget -c http://nginx.org/download/${Nginx_Ver}.tar.gz
#wget -c http://mirrors.ustc.edu.cn/mariadb/${Mariadb_Ver}/source/${Mariadb_Ver}.tar.gz
#wget -c http://www.php.net/distributions/${Php_Ver}.tar.gz
#wget -c ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${Pcre_Ver}.tar.gz
#wget -c http://ftp.gnu.org/pub/gnu/libiconv/${Libiconv_Ver}.tar.gz
#wget -c http://downloads.sourceforge.net/mcrypt/${LibMcrypt_Ver}.tar.gz
# phpMyAdmin_version=${PhpMyAdmin_Ver#*-} && phpMyAdmin_version=${phpMyadmin_version%%-*}
#wget -c http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/${phpMyAdmin_version}/${PhpMyAdmin_Ver}.tar.gz
#wget -c http://ftp.gnu.org/gnu/autoconf/${Autoconf_Ver}.tar.gz
#wget -c http://download.savannah.gnu.org/releases/freetype/${Freetype_Ver}.tar.gz
# mhash_version=${Mash_Ver#*-}
#wget -c http://downloads.sourceforge.net/project/mhash/mhash/${mhash_version}/${Mash_Ver}.tar.gz
#wget -c http://mirror.bit.edu.cn/apache/apr/${APR_Ver}.tar.gz
#wget -c http://mirror.bit.edu.cn/apache/apr/${APR_Util_Ver}.tar.gz
#wget -c http://mirrors.hust.edu.cn/apache/httpd/${Apache_Version}.tar.gz
#wget -c http://pecl.php.net/get/redis-2.2.7.tgz

